package com.acxy.test;

import com.acxy.ants.core.JTomcat;
import com.acxy.ants.core.Jetty;
import com.acxy.ants.core.annotation.Application;
import com.acxy.ants.core.config.AntsConfig;
import com.acxy.ants.resful.annotation.Controller;
import com.acxy.ants.resful.annotation.GET;

/**
 * 全局配置
 *
 * @author MrShun
 * @version 1.0
 * @Date 2017-04-26
 */
@Application
@Controller
public class AppConfig extends AntsConfig {

    @GET("/run")
    public Object test(){
        return "ants is ok!";
    }


    public static void main(String[] args) {
        //采用Jetty启动，前提需要配置maven jar
       // Jetty.start(8080, "/test");
        JTomcat.start(80, "test");
    }
}
